/*
 */
package org.vectrics.recruiter.struts.tag;

import java.util.List;

import org.vectrics.common.pagelist.PageList;
import org.vectrics.recruiter.RecruitServiceLocator;

/**
 * @author mmoore
 */
public class ResumeScanPageList extends PageList {
    private Long batchNumber = null;

    public ResumeScanPageList(Long batchNumber) {
        this.batchNumber = batchNumber;
    }
    
    /* (non-Javadoc)
     * @see org.vectrics.common.pagelist.PageList#getTotalElementCount()
     */
    public int getTotalElementCount() {
        int count = RecruitServiceLocator.getRecruitUserService().findResumeScanResultsCount(batchNumber);
        return count;
    }

    /* (non-Javadoc)
     * @see org.vectrics.common.pagelist.PageList#getElements(int, int)
     */
    public List getElements(int start, int end) {
        List elements = RecruitServiceLocator.getRecruitUserService().findResumeScanResults(batchNumber, start, end);
        return(elements);
    }

}
